package cn.initcap.validate.image;

import cn.initcap.validate.ValidateCode;
import java.awt.image.BufferedImage;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * @author initcap
 * @date Created in 2018/5/18 AM10:34.
 */
@Getter
@Setter
public class ImageCode extends ValidateCode {

    private BufferedImage image;

    public ImageCode(BufferedImage image, String code, int expireIn) {
        super(code, expireIn);
        this.image = image;
    }

    public ImageCode(BufferedImage image, String code, LocalDateTime expireTime) {
        super(code, expireTime);
        this.image = image;
    }

}
